<?php
/**
 * Interface
 *
 * @desc Sync client class interface
 * @author Andrew lee <andrew(at)dianboom(dot)com>
 * @package client_api
 * @version 0.7a
 * @since 16:28 2011/08/19
 * @copyright 2010-2011 dianboom corporation. All rights reserved.
 */

defined('SYNC_CLIENT_ROOT') || die('Access denied !');

interface SYNC_CLIENT_INT extends SYNC_CLIENT_INT_COMMON {

	/**
     * @method get_category_by_id
     *
     * @desc get categorie by id
     * @param integer $cat_id
     * @return json
     */
    //public function get_category_by_id($cat_id);

    /**
     * @method statistics
     *
     * @desc count products and categories
     * @param mixed $cat_id
     * @return integer
     */
    public function statistics($cat_id);


	/**
	 * @method getProductAttrs
	 *
	 * @desc get product attributes
	 * @param integer $product_id
	 * @return array
	 */
	public function getProductAttrs($product_id);


	/**
	 * @method receiveOrders
	 *
	 * @desc receive orders from dianboom server
	 * @param string $order_info
	 * @return array
	 */
	public function receiveOrders($order_info);
}
?>